package java_class_work.week07.thread;

import java.io.InputStream;
import java.io.OutputStream;

/**
 * @Author Tiam
 * @Date 2022/10/31 10:15
 * @Description:
 */
public class ThreadDemo2 {
    public static void main(String[] args) {
        Thread01 thread01 = new Thread01();
        thread01.setName("Threadx线程");
        // 优先级1-10, 默认为5
        System.out.println(thread01.getPriority());
        // 设置优先级
        thread01.setPriority(10);
        // 线程状态
        /*
        1. 新建 start
        2. 就绪
        3. 运行
        4. 阻塞 sleep
        5. 死亡 stop
         */
    }
}
